/*
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
*/
package cmd

import (
	"gctl/internal/srv"

	"github.com/spf13/cobra"
)

// srvCmd represents the srv command
var srvCmd = &cobra.Command{
	Use:   "srv",
	Short: "A brief description of your command",
	Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
	Run: srv.SrvRoute,
}
var SrvName string

func init() {
	rootCmd.AddCommand(srvCmd)
	//微服名称
	srvCmd.PersistentFlags().StringVarP(&SrvName, "srv", "m", "srv", "gctl srv -m srv")
}
